﻿<%@ Page Title="添加医生" Language="C#" MasterPageFile="~/Administrators.master" AutoEventWireup="true" CodeFile="AddDor.aspx.cs" Inherits="AddDor" Theme="TextBox" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <table align="center" style="width: 80%;"  border="1" border-style="dotted">
            <tr>
                <th style="width:300px"  height="45px"  colspan="2"  ><font size="6px">添 加 医 生 信 息</font>
                </th>
            </tr>
            <tr>
                <td style="width: 300px; height: 40px;" align="right">医生编号：</td>
                <td style="width: 300px; height: 40px;">
                    &nbsp;
                    <asp:TextBox ID="TxtID" runat="server" Width="180px" BorderColor="#66CCFF" BorderStyle="Outset" AutoPostBack="true" autocomplete="off" OnTextChanged="TxtID_TextChanged"></asp:TextBox>
                &nbsp;<asp:Label ID="lblTs" runat="server" Font-Size="Medium" ForeColor="#999999"></asp:Label>
                    </td>
                
            </tr>
            <tr>
                <td style="width: 300px; height: 40px;" align="right">姓名：</td>
                <td style="width: 300px; height: 40px;">
                    &nbsp;
                    <asp:TextBox ID="TxtName" runat="server" Width="180px" BorderColor="#66CCFF" BorderStyle="Outset" autocomplete="off"></asp:TextBox>
                &nbsp;</td>                
            </tr>
            <tr>
                <td style="width: 300px" height="40px" align="right">密码：</td>
                <td style="width: 300px" height="40px">
                    &nbsp;
                    <asp:TextBox ID="Txtpsd" runat="server" BorderColor="#66CCFF" BorderStyle="Outset" Width="180px" autocomplete="off"></asp:TextBox>
                    </td>                
            </tr>
            <tr>
                <td style="width:300px" height="40px" align="right">身份证：</td>
                <td style="width:300px" height="40px">
                    &nbsp;
                    <asp:TextBox ID="TxtIDCrad" runat="server" BorderColor="#66CCFF" BorderStyle="Outset" Width="180px" autocomplete="off"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width:300px" height="40px" align="right">性别：</td>
                <td style="width:300px" height="40px">
                    &nbsp;
                    <asp:RadioButton ID="Sex1" runat="server" GroupName="Sex" Text="男" />
&nbsp;
                    <asp:RadioButton ID="Sex2" runat="server" GroupName="Sex" Text="女" />
                </td>
            </tr>
            <tr>
                <td style="width:300px; height: 40px;" align="right">所属科室：</td>
                <td style="width:300px; height: 40px;">
                    &nbsp;
                    <asp:DropDownList ID="DropDemt" runat="server" Height="25px" Width="140px" AutoPostBack="True" DataSourceID="SqlDataSource1" DataTextField="Name" DataValueField="Name">
                    </asp:DropDownList>
                    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
                        ConnectionString="Data Source=.;Initial Catalog=Hospital;Persist Security Info=True;User ID=sa;Password=123" 
                        SelectCommand="SELECT [Name] FROM [Department]" 
                        ProviderName="<%$ ConnectionStrings:HospitalConnectionString.ProviderName %>"></asp:SqlDataSource>
                </td>
            </tr>
            <tr>
                <td style="width:300px" height="40px" align="right">职位：</td>
                <td style="width:300px" height="40px">
                    &nbsp;
                    <asp:TextBox ID="Position" runat="server" BorderColor="#66CCFF" BorderStyle="Outset" Width="180px" autocomplete="off"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width:300px" height="40px" align="right">电话号码：</td>
                <td>&nbsp;
                    <asp:TextBox ID="Phone" runat="server" BorderColor="#66CCFF" BorderStyle="Outset" Width="180px" autocomplete="off"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width:300px" height="40px" align="right">住址：</td>
                <td>&nbsp;
                    <asp:TextBox ID="Address" runat="server" BorderColor="#66CCFF" BorderStyle="Outset" Width="180px" autocomplete="off"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width:300px" height="70px" align="right">介绍：</td>
                <td>&nbsp;
                    <asp:TextBox ID="Introduction" runat="server" BorderColor="#66CCFF" BorderStyle="Outset" Width="180px" autocomplete="off" Rows="3" TextMode="MultiLine"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td style="width:300px" height="45px" align="right">照片：</td>
                <td>&nbsp;

                    <asp:FileUpload ID="image" runat="server" BorderColor="#66CCFF" BorderStyle="Outset" Width="180px" />

                &nbsp;<asp:Label ID="lblImg" runat="server" Font-Size="Medium" ForeColor="#999999"></asp:Label>

                </td>
            </tr>
            <tr>
                <td style="width: 300px; height: 35px;" align="right">
                    <asp:Button ID="BtnTj" runat="server" Text="添 加" Width="55px" BackColor="#CCCCFF" BorderColor="#66CCFF" BorderStyle="Outset" OnClick="BtnTj_Click" />&nbsp;&nbsp;&nbsp; </td>
                <td style="width: 300px; height: 35px;" align="left">&nbsp;
                    <asp:Button ID="BtnQk" runat="server" Text="清 空" Width="55px" BackColor="#CCCCFF" BorderColor="#66CCFF" BorderStyle="Outset" OnClick="BtnQk_Click" style="height: 21px" />
                </td>
            </tr>
        </table>
</asp:Content>

